package pl.edu.pw.ee.buildcity.domain;

import org.springframework.context.ApplicationEvent;

/**
 * Application events which is published to trigger specified job.
 *
 * @author Mateusz
 * @since 2010-02-27
 */
public class FireJobEvent extends ApplicationEvent {

	public FireJobEvent(String jobName) {
		super(jobName);
	}

	public String getJobName() {
		Object s = getSource();
		return s == null ? "" : s.toString();
	}
}
